package zhtt.test.service.test;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import zhtt.test.entity.User;
import zhtt.test.repository.UserRepository;

@Service
public class UserService {

    @Autowired
    private UserRepository repository;

    /*public User save(User user){
        return  repository.save(user);
    }

    public Iterable<User> findAll(){
        return  repository.findAll();
    }

    public Iterable<User> findByName(String name){
        return  repository.findByName(name);
    }*/

    public User save(User user){
        return  repository.save(user);
    }

    public Iterable<User> findAll(){
        return  null;
    }

    public Iterable<User> findByName(String name){
        return  null;
    }
}
